/* $Id:line_change.h jjs $ */
/*
   Copyright (C) 2007 by Jurjen Stellingwerff <jurjen@stwerff.xs4all.nl>
   Part of the Moros Project http://moros.sourceforge.net/

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License.
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY.

   See the COPYING file for more details.
*/
#ifndef line_change_H
#define line_change_H

#include <gtkmm.h>
#include <libglademm.h>

/// Let the user change a line

class line_change : public Gtk::Dialog
{
public:
	line_change(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml> refGlade); ///< Window
	virtual ~line_change(); ///< Remove window data
	sigc::signal<void, std::string> signal_apply;
	Gtk::Label* line_label;
	Gtk::Entry* line_text;

protected:
	Glib::RefPtr<Gnome::Glade::Xml> m_refGlade;
	virtual void clicked_apply();
	virtual void clicked_cancel();
	Gtk::Button* line_cancel;
	Gtk::Button* line_apply;
};

void init_line_change();
void line_changer(std::string label, std::string line, sigc::signal<void, std::string> signal_apply);

#endif //line_change_H

